#include "StompedReality/Asset/JointAnimation.h"
#include "StompedReality/Core/TypeSystem/TypeSystem.h"
namespace StompedReality
{
namespace animation
{
JointAnimation::JointAnimation( )
{
}

JointAnimation::~JointAnimation( )
{
}

void JointAnimation::addKeyFrame ( KeyFrame keyFrame )
{
  this->_keyFrames.push_back ( keyFrame );
}

KeyFrame* JointAnimation::getKeyFrame ( int idx )
{
  return &( this->_keyFrames[idx] );
}

int JointAnimation::numberOfFrames( )
{
  return this->_keyFrames.size( );
}

int JointAnimationReg::registeType( )
{
  return ( int ) ( StompedReality::type_system::TypeSystem::CreateTypeInfo<JointAnimation> ( "JointAnimation" )->
                   addTypeField ( StompedReality::type_system::TypeField ( "KeyFrames",
                                                                           &JointAnimation::_keyFrames ) ) );
}

}
}
